import {AfterViewInit, Component, OnInit} from '@angular/core';
import {Zero3LayoutNavbarComponent} from '../../../../frame/zero3-layout-navbar/zero3-layout-navbar.component';
import {Zero3LayoutMenuComponent} from '../../../../frame/zero3-layout-menu/zero3-layout-menu.component';
import {MainModifyConZoneTypeComponent} from './main-modify-con-zone-type/main-modify-con-zone-type.component';
import {HttpRequestClient} from '../../../../frame/http-request-client/http-request-client';
import {ActivatedRoute} from '@angular/router';

@Component({
    selector: 'app-modify-con-zone-type',
    templateUrl: './modify-con-zone-type.component.html',
    styleUrls: ['./modify-con-zone-type.component.css']
})
export class ModifyConZoneTypeComponent implements OnInit, AfterViewInit {

    nav: {
        upper: ModifyConZoneTypeComponent,
        self: Zero3LayoutNavbarComponent,
    } = {
        upper: this,
        self: null,
    };

    menu: {
        upper: ModifyConZoneTypeComponent,
        self: Zero3LayoutMenuComponent,
    } = {
        upper: this,
        self: null,
    };

    main: MainModifyConZoneTypeComponent = null;

    constructor(public route: ActivatedRoute) {
    }

    ngOnInit() {
    }

    ngAfterViewInit(): void {
        this.menu.self.moduleId = this.route.snapshot.paramMap.get('moduleId');
        this.menu.self.menuId = this.route.snapshot.paramMap.get('menuId');
    }

}
